﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace AnQinFrameWorkAPI.Entity.Develop.Entity;

/// <summary>
///     项目客户管理模型
/// </summary>
[Table("ProjectCustomer")]
public class DevelopProjectCustomerModel
{
    /// <summary>
    ///     项目客户id
    /// </summary>
    [Key]
    [MaxLength(36)]
    public Guid Id { get; set; }

    /// <summary>
    ///     项目客户编码
    /// </summary>
    [MaxLength(50)]
    public string Code { get; set; }

    /// <summary>
    ///     项目客户姓名
    /// </summary>
    [MaxLength(50)]
    public string Name { get; set; }

    /// <summary>
    ///     项目客户联系方式
    /// </summary>
    [MaxLength(50)]
    public string Phone { get; set; }

    /// <summary>
    ///     项目客户备注
    /// </summary>
    [Column(TypeName = "nvarchar(max)")]
    public string? Remark { get; set; }

    /// <summary>
    ///     创建人Id
    /// </summary>
    [MaxLength(36)]
    public string? CreateStaffId { get; set; }
    
    /// <summary>
    ///     创建人姓名
    /// </summary>
    [MaxLength(50)]
    public string? CreateStaffName { get; set; }

    /// <summary>
    ///     创建时间
    /// </summary>
    public DateTime CreateTime { get; set; }

    /// <summary>
    ///     是否删除
    /// </summary>
    public bool IsDelete { get; set; }
}